/*
2022-3-6
https://leetcode-cn.com/problems/cells-in-a-range-on-an-excel-sheet/submissions/
*/
class Solution {
public:
    vector<string> cellsInRange(string s) {
        vector<string> ans;
        for(char i=s[0];i<=s[3];i++)
            for(char j=s[1];j<=s[4];j++)
                ans.push_back(string(1,i)+string(1,j));
        return ans;
    }
}; 
